package records

import (
	"github.com/golib/mysql"
)

const RecordNameCmsCourseQuestion = "cms_course_question"

func init() {
	var r = &CmsCourseQuestion{}
	mysql.RegisterRecord(r.Name(), r)
}

type CmsCourseQuestion struct {
	CourseQuestionId int    `json:"courseQuestionId" form:"courseQuestionId" column:"course_question_id" primary:"true" modify:"false"`
	CourseId         int    `json:"courseId" form:"courseId" column:"course_id" modify:"true"`
	QuestionId       int    `json:"questionId" form:"questionId" column:"question_id" modify:"true"`
	Type             int    `json:"type" form:"type" column:"type" modify:"true"`
	NeedParse        int    `json:"needParse" form:"needParse" column:"need_parse" modify:"true"`
	Orderby          int    `json:"orderby" form:"orderby" column:"orderby" modify:"true"`
	CreateTime       string `form:"createTime" column:"create_time" modify:"false" json:"createTime"`
	UpdateTime       string `column:"update_time" modify:"false" json:"updateTime" form:"updateTime"`
}

func (r *CmsCourseQuestion) Name() string {
	return RecordNameCmsCourseQuestion
}
